<template>
  <div class="avarar-icon">
    <i
      class="el-icon-plus avatar-uploader-icon"
      :style="`width:${iconStyle};height:${iconStyle};line-height:${iconStyle}`"
    ></i>
  </div>
</template>

<script>
export default {
  name: "WebAvataricon",

  props: {
    iconStyle: {
      type: String,
      default: () => "",
    },
  },
};
</script>

<style lang="scss" scoped>
.avarar-icon {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  &:hover {
    border-color: #409eff;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 140px;
    height: 140px;
    line-height: 140px;
    text-align: center;
  }
}
</style>
